package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.LotteryActEntity;
import yf.mall.vo.LotteryActVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;

import java.util.Date;
import java.util.List;
/**
 * 抽奖活动Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 10:29:43 CST 2020
 */
@Mapper
public interface LotteryActDao extends BaseDao<LotteryActEntity> {

    List<LotteryActVo> findVo(LotteryActVo vo);

    LotteryActVo getVo(Long id);

    List<LotteryActEntity> findByStatus(@Param("status") Integer status);

    LotteryActEntity getActNameAndOpenAct(String name,Integer status);

    LotteryActEntity getAct();

    List<LotteryActEntity> findAct();

    LotteryActEntity findIdByStatus(Long id);

    List<LotteryActEntity> findByStatusAndToday(int status, Date date);

    List<LotteryActEntity> findByToday(Date date);
}
